home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / infozip / unz50p1 / msdos / makefile.gcc < prev    next >
Encoding:
Makefile  |  1993-11-27  |  1.9 KB  |  84 lines

  1. #------------------------------------------------------------------------------
  2. # Makefile for UnZip 5.x and ZipInfo 1.x                Greg Roelofs and others
  3. # Version:  djgpp 1.10
  4. #------------------------------------------------------------------------------
  5.  
  6. #####################
  7. # MACRO DEFINITIONS #
  8. #####################
  9.  
  10. CRYPTF =
  11. CRYPTO =
  12. # Uncomment the following two lines for decryption version:
  13. #CRYPTF = -DCRYPT
  14. #CRYPTO = crypt.obj
  15.  
  16. CC = gcc
  17. CFLAGS = -Wall -O2 $(CRYPTF)
  18. INCL =                                 # (-Ox does not work for inflate.c)
  19. LD = gcc
  20. LDFLAGS = -s
  21. LDFLAGS2 = 
  22.  
  23.  
  24. OBJS1 = unzip.o $(CRYPTO) envargs.o explode.o extract.o file_io.o
  25. OBJS2 = inflate.o mapname.o match.o misc.o unreduce.o unshrink.o
  26.  
  27. ZI_OBJS = zipinfo.o envargs.o match.o misc_.o
  28.  
  29.  
  30. ###############################################
  31. # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
  32. ###############################################
  33.  
  34. default:        unzip.exe zipinfo.exe
  35.  
  36. .c.o:
  37.     $(CC) -c $(CFLAGS) $(INCL) $*.c
  38.  
  39. unzip.o:      unzip.c unzip.h
  40.  
  41. crypt.o:      crypt.c unzip.h zip.h    # may or may not be in distribution
  42.  
  43. envargs.o:    envargs.c unzip.h
  44.  
  45. explode.o:    explode.c unzip.h
  46.  
  47. extract.o:    extract.c unzip.h
  48.  
  49. file_io.o:    file_io.c unzip.h
  50.  
  51. inflate.o:    inflate.c unzip.h
  52.  
  53. mapname.o:    mapname.c unzip.h
  54.  
  55. match.o:      match.c unzip.h
  56.  
  57. misc.o:       misc.c unzip.h
  58.  
  59. misc_.o:      misc.c unzip.h
  60.     -copy misc.c misc_.c
  61.     $(CC) -c $(CFLAGS) -DZIPINFO $(INCL) misc_.c
  62.     -del misc_.c
  63.  
  64. unreduce.o:   unreduce.c unzip.h
  65.  
  66. unshrink.o:   unshrink.c unzip.h
  67.  
  68.  
  69.  
  70. # DOS/MS make:
  71. # -----------
  72. unzip.exe:      $(OBJS1) $(OBJS2)
  73.     $(LD) $(LDFLAGS) $(OBJS1) $(OBJS2) -o unzip
  74.     coff2exe unzip
  75.     -del unzip
  76.  
  77.  
  78. # Both makes:  (not tested)
  79. # ----------
  80. zipinfo.exe:    $(ZI_OBJS)
  81.     $(LD) $(LDFLAGS) $(ZI_OBJS) -o zipinfo $(LDFLAGS2)
  82.     coff2exe zipinfo
  83.     -del zipinfo
  84.